from selenium import webdriver
from selenium.webdriver.common.by import By
import time

#
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
#
#
# kw = driver.find_element(By.ID,'kw')
# kw.send_keys('哈哈哈哈哈')
# time.sleep(2)
# kw.clear()
# print(kw.get_attribute('name'))
# print(kw.get_attribute('class'))


# driver = webdriver.Chrome()
# driver.get('https://sahitest.com/demo/clicks.htm')
# a = driver.find_element(By.XPATH,'//input[@value="disable1"]')
# print(a.is_enabled())
# b =driver.find_element(By.NAME,'t1')
# print(b.is_enabled())
# #
c = driver.find_element(By.XPATH,'//input[@name="rn"]')
print(c.is_displayed())










time.sleep(3)
driver.quit()